﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace KPIS.GERP.GHRMS.MODEL
{
    [Serializable]
    public class ParentInfo : RecordInfo
    {
        private int parent_seq;
        private EmployeeInfo emp_seq;
        private PersonInfo person;
        private string parent_type; //'1=บิดา, 2=มารดา, 3=บิดาบุญธรรม, 4=มารดาบุญธรรม',
        private string parent_type_name;
        private bool care_status; //'สถานะการดูแล ''Y'' ดูแลอยู่ ''N'' ไม่ได้ดูแล',
        private string parent_status; //สถานะบิดามารดา 1=มีชีวิต, 0=เสียชีวิต
        private string parent_status_name;

        public ParentInfo()
        { 
        }
        public ParentInfo(int Sequence)
        {
            this.Sequence = Sequence;
        }
        public ParentInfo(int Sequence, EmployeeInfo Employee, PersonInfo Person, string Type, string TypeName
            , bool CareStatus, string Status, string StatusName, string RecordStatus, Nullable<int> CreatedBy
            , Nullable<int> UpdatedBy)
        {
            this.Sequence = Sequence;
            this.Employee = Employee;
            this.Person = Person;
            this.Type = Type;
            this.TypeName = TypeName;
            this.CareStatus = CareStatus;
            this.Status = Status;
            this.StatusName = StatusName;
            this.RecordStatus = RecordStatus;
            this.CreatedBy = CreatedBy;
            this.UpdatedBy = UpdatedBy;
        }
        public int Sequence
        {
            get { return parent_seq; }
            set { parent_seq = value; }
        }
        public EmployeeInfo Employee
        {
            get { return emp_seq; }
            set { emp_seq = value; }
        }
        public PersonInfo Person
        {
            get { return person; }
            set { person = value; }
        }
        public string Type
        {
            get { return parent_type; }
            set { parent_type = value; }
        }
        public string TypeName
        {
            get { return parent_type_name; }
            set { parent_type_name = value; }
        }
        public bool CareStatus
        {
            get { return care_status; }
            set { care_status = value; }
        }
        public string Status
        {
            get { return parent_status; }
            set { parent_status = value; }
        }
        public string StatusName
        {
            get { return parent_status_name; }
            set { parent_status_name = value; }
        }
    }
}
